//
//  NetworkingTools.h
//  autoMasterTM
//
//  Created by my-pc on 16/5/23.
//  Copyright © 2016年 qianjinding. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^AppToolBlock)(id result);
typedef void(^AppToolErrorBlock)(NSError *error);

@interface NetworkingTools : NSObject
/**
 网络获取数据
 */
+(void)getDataWithURL:(NSString *)url sign:(NSString *)sign Block:(AppToolBlock)block ErrorBlock:(AppToolErrorBlock)errorBlock;


/**
发送数据
*/
+(void)post:(NSString*)url params:(NSDictionary *)params success:(void(^)(id responseObj))success failure:(void(^)(NSError *error))failure;









@end







